package com.aspose.cells;

class zyy extends zyr {
   static zyy a = new zyy(0.0D);
   static zyy b = new zyy(1.0D);
   private double c;

   public zyy(double var1) {
      this.c = var1;
   }

   public double k() {
      return this.c;
   }

   public boolean l() {
      return !Double.isInfinite(this.c) && !Double.isNaN(this.c);
   }

   public boolean m() {
      return this.c == 0.0D;
   }

   public boolean n() {
      return zfc.a(this.c);
   }

   public int o() {
      if (zfc.a(this.c)) {
         return 0;
      } else {
         return this.c > 0.0D ? 1 : -1;
      }
   }

   public int p() {
      if (zfc.a(this.c, 1.0D)) {
         return 0;
      } else {
         return this.c > 1.0D ? 1 : -1;
      }
   }

   public int b() {
      return 3;
   }

   public Object c() {
      return this.c;
   }

   public byte a() {
      int var1 = (int)this.c;
      return (byte)(this.c == (double)var1 && var1 >= 0 && var1 <= 65535 ? 30 : 31);
   }

   public zyy a(zaay var1, int var2) {
      return this;
   }

   public zaam i(zaay var1) {
      return new zaam(com.aspose.cells.b.a.zn.b(this.c));
   }

   public zyv j(zaay var1) {
      return this.c != 0.0D ? zyx.a : zyw.a;
   }

   public void a(StringBuilder var1, zaay var2) {
      if (this.c < 1.0E21D && Math.abs(this.c) > 1.0E-21D) {
         var1.append(com.aspose.cells.a.c.zp.a(this.c));
      } else {
         var1.append(com.aspose.cells.b.a.zn.b(this.c));
      }

   }

   public boolean a(zagu var1) {
      return var1 == this || var1.b() == 3 && ((zyy)var1).c == this.c;
   }
}
